OBJECT SIZE
This command will return a real number representing the radius of the specified 3D object.
Return Float=OBJECT SIZE(Object Number)
Return Float=OBJECT SIZE(Object Number, Actual Size)
Object Number
Integer
The object number
Actual Size
Integer
This value is an integer number such as 1.
This command will return a real number representing the radius of the specified 3D object
Where the dimensions are not the same value, an average of the X, Y and Z size is used to report the overall object size.
backdrop off : cls : sync on : sync rate 0 : hide mouse:cls 0
ObjectNumber=1
load object "models\model.x",ObjectNumber
print "BASIC3D EXPRESSION DATA"
if object exist(ObjectNumber)=1
print "size:";object size(ObjectNumber)
endif
while mouseclick()=0
sync
endwhile
if object exist(ObjectNumber)=1 then delete object ObjectNumber
end
BASIC3D Commands Menu
Index